package com.lkm.app_ui.m.Imple.goods;

import com.lkm.app_ui.log.SystemLogger;
import com.lkm.app_ui.m.goods.GoodsModule;
import com.lkm.frame.module.ConditionConfige;
import com.lkm.frame.module.ModuleDelegate;
import com.lkm.frame.module.ModuleManager;


public class GoodsModuleDelegate implements ModuleDelegate<GoodsModule, Void> {

    private ModuleManager mModuleManager;

    @Override
    public void init(ModuleManager moduleManager) {
        mModuleManager = moduleManager;
    }

    @Override
    public void dependency(DependencyConfig dc) {


    }

    @Override
    public void configure(ConditionConfige<Void> cc) {
    }

    @Override
    public GoodsModule execute(Void non) {
        return new GoodsModuleImpl();
    }

    @Override
    public Class<GoodsModule> getModuleInterfaceClass() {
        return GoodsModule.class;
    }

    @Override
    public void onError(ErrorWarp e) {
        SystemLogger.onModuleError(e);
    }
}
